-- Entity.lua
local Entity = {}

-- 创建新实体
function Entity:new(properties)
    properties = properties or {}
    local entity = {
        isPlayer = properties.player or false
    }
    return entity
end

-- 实体创建函数
return function(properties)
    return Entity:new(properties)
end